/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;

/**
 *
 * @author R3l4X
 */
public class Sale {
    
    
    private int saleID;
    private String date;
    private double totalPrice;
    private boolean status;
    private Customer customer;
    private SalesLine saleLine;

    public SalesLine getSaleLine() {
        return saleLine;
    }

    public void setSaleLine(SalesLine saleLine) {
        this.saleLine = saleLine;
    }

    
    
    public Sale()
    {
        
    }

    public Sale(int saleID) {
        this.saleID = saleID;
    }
    
    
    
    public Sale(Customer customer, boolean status, String date, double totalPrice) {
        this.date = date;
        this.totalPrice = totalPrice;
        this.customer = customer;
        this.status = status;
        this.saleID = saleID;
    }

    public boolean getStatus() {
        return status;
    }

    public String getDate() {
        return date;
    }

    public void setDate(String date) {
        this.date = date;
    }

    public double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }    
    
    public int getSaleID()
    {
        return saleID;
    }

    public void setSaleID(int saleID)
    {
        this.saleID = saleID;
       
    }
    
    
      public void setStatus(boolean status) {
        this.status = status;
    }  
    

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }
      
}
